package com.sinopec.basemodule.adapter

import android.view.View
import com.sinopec.basemodule.R
import com.sinopec.basemodule.model.ProductBusinessNameItemModel
import kotlinx.android.synthetic.main.product_name_item_popuwindow.view.*

/**
 * @author lwj
 * @ClassName: ProductNameSpinnerAdapter
 * @Description:业务类型Spinner
 */
class ProductNameSpinnerAdapter : BaseSpinnerAdapter<ProductBusinessNameItemModel?>(R.layout.product_name_item_popuwindow) {
    override fun onBindView(position: Int, convertView: View, data: ProductBusinessNameItemModel?) {
        val tv_name = convertView.tv_name
        tv_name.text =data?.productBusinessName
    }
}